package com.corpgovernment.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
public class SupplierPushDto {

    /**
     * 推送类型
     */
    private String pushType;

    /**
     * 状态推送入参
     */
    private StatusPush statusPush;

    /**
     * 票号推送入参
     */
    private TicketNoPush ticketNoPush;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class StatusPush{
        /**
         * 订单号
         */
        private String orderId;
        /**
         * 供应商公司ID
         */
        private String corpId;
        /**
         * 供应商状态码
         */
        private String orderStatus;
        /**
         * 产线类型
         */
        private String productType;
        /**
         * 供应商编码
         */
        private String supplierCode;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class TicketNoPush{
        /**
         * 票号
         */
        private String ticketNo;
        /**
         * 供应商公司ID
         */
        private String corpId;
        /**
         * 订单号
         */
        private String orderId;
        /**
         * 航程
         */
        private String segments;
        /**
         * 供应商编码
         */
        private String supplierCode;
    }

    /**
     * 订单推送
     */
    public final static String PUSH_TYPE_ORDER_STATUS = "orderStatus";
    /**
     * 票号推送
     */
    public final static String PUSH_TYPE_TICKET_NO_PUSH = "ticketNoPush";
}
